<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<a th:href="@{/add}">新增</a>
<table border="1px">
    <tr>
        <td>小狗ID</td>
        <td>小狗姓名</td>
        <td>小狗年龄</td>
        <td>小狗性别</td>
        <td>小狗品种</td>
        <td>功能菜单</td>
    </tr>
    <tr th:each="dog:${page.records}">
        <td>[[${dog.dogId}]]</td>
        <td>[[${dog.dogName}]]</td>
        <td>[[${dog.dogAge}]]</td>
        <td>[[${dog.dogSex}]]</td>
        <td>[[${dog.dogType}]]</td>
        <td><a th:href="@{/getDogById(dogId=${dog.dogId})}">修改</a>
            &nbsp;<a th:href="@{/deleteDog(dogId=${dog.dogId})}">删除</a> </td>
    </tr>
</table>
当前页:[[${page.current}]] 总页数:[[${page.pages}]] 总行数:[[${page.total}]] 每页显示数:[[${page.size}]]
<a th:href="@{/getByPage}">首页</a>
<a th:href="@{/getByPage(pageNum=${page.hasPrevious()}?${page.current-1}:1)}">上一页</a>
<a th:href="@{/getByPage(pageNum=${page.hasNext()}?${page.current+1}:${page.pages})}">下一页</a>
<a th:href="@{/getByPage(pageNum=${page.pages})}">尾页</a>
</body>
</html>